<%@ page language="java" contentType="text/html; charset=UTF-8"
	isELIgnored="false" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="f" %>
<%@ taglib uri="/mytag" prefix="yjd"%>
<script	src="${requestScope.FPWEB.staticRootPath }/Js/Plugins/Echarts/echarts.min.js"></script>

<div class="wrap">
<div class="J_Chart_Panel">
		<div class="h_a1" style="clear: both;">
			<span class="title">基础数据-资金量</span>
			<div class="yjd-tip">
				<div style="width:500px;">
		1、成交量：在指定的时间段内，在医界贷投资“投资项目”、“债权转让”金额总和（含使用的代金券；以投资人购买支付成功时计算成交额，不按照满标终审为标准计算成交额）<br>
		2、充值金额：在指定的时间段内，医界贷网站用户成功充值金额（含网银充值、快捷充值；不包含借款用户充值金额）<br>
		3、提现金额：在指定的时间段内，医界贷网站用户成功提现金额（不包含灵通卡、医信宝提现金额；不包含借款用户充值金额）<br>
		4、灵通卡用户投资金额：在指定的时间段，灵通卡用户投资投资项目、债权转让金额之和<br>
				</div>
			</div>
		</div>
	<div >
		<form method="post" id="sumary" autocomplete="off" action="${requestScope.FPWEB.rootPath }/funds/getSummary${requestScope.FPWEB.urlStuff}" >
			<div class="search_type cc">
				<label>起始时间：</label> <input type="input" max="${now }" name="start" min="${start }"
					class="input length_1 mr10 J_date" value="2013-12-21">
				<label>结束时间：</label> <input type="input" max="${now }" name="end" min="${start }"
					class="input length_1 mr10 J_date" value="${now }">
				<button id="search" type="button" class="btn length_1">搜索</button>
			</div>
		</form>
		<div class="count cc" id="cbox">
			<div class="c-box">
				<div class="c-box-head">成交量（元）</div>
				<div class="c-box-con">
					<span name="number" class="number">0</span> <span>元</span>
				</div>
			</div>
			<div class="c-box">
				<div class="c-box-head">充值金额（元）</div>
				<div class="c-box-con">
					<span name="number" class="number">0</span> <span>元</span>
				</div>
			</div>
			<div class="c-box">
				<div class="c-box-head">提现金额（元）</div>
				<div class="c-box-con">
					<span name="number" class="number">0</span> <span>元</span>
				</div>
			</div>
			<div class="c-box">
				<div class="c-box-head">灵通卡用户成交额（元）</div>
				<div class="c-box-con">
					<span name="number" class="number">0</span> <span>元</span>
				</div>
			</div>
		</div>
	</div>
	</div>
	<li>
	<%@include  file="/WEB-INF/jsp/fundsStatistic/volume.jsp"%>
	<%-- <%@include  file="/WEB-INF/jsp/fundsStatistic/volume_daily.jsp"%> --%>
	<%@include  file="/WEB-INF/jsp/fundsStatistic/recharge.jsp"%>
	<%-- <%@include  file="/WEB-INF/jsp/fundsStatistic/recharge_daily.jsp"%> --%>
	<%@include  file="/WEB-INF/jsp/fundsStatistic/cash.jsp"%>
	<%@include  file="/WEB-INF/jsp/fundsStatistic/cash_depo.jsp"%>
	<%-- <%@include  file="/WEB-INF/jsp/fundsStatistic/cash_daily.jsp"%> --%>
	<%@include  file="/WEB-INF/jsp/fundsStatistic/available.jsp"%>
	<%@include  file="/WEB-INF/jsp/fundsStatistic/allavailable.jsp"%>
	<%-- <%@include  file="/WEB-INF/jsp/fundsStatistic/available_daily.jsp"%> --%>
	<%@include  file="/WEB-INF/jsp/fundsStatistic/borrow.jsp"%>
	<%@include  file="/WEB-INF/jsp/fundsStatistic/lck_available.jsp"%>
	<%-- <%@include  file="/WEB-INF/jsp/fundsStatistic/borrow_daily.jsp"%> --%>
	
	<script>
		YJD.use('AppAdminCommon');
		YJD.use('AppBICommon');
		var form=$("#sumary");
		$("#search").click(function(){
			addCompareData();
		});
		function addCompareData() {
			$.ajax({
			type: "post",
			url: form.attr("action"),
			data: form.serializeArray(), // 你的formid
			error: function(request) {
				alert("连接失败！");
			},
			success: function(data) {
				if (data.state == 1) {
					var cbox=$("#cbox");
					var boxes=cbox.find(".c-box");
					boxes.each(function(index,e){
						var val=$(this).find('span[name=number]');
						val.text(data.data.summaryVals[index]);
					});
				}
			}
		});
		}
		addCompareData() ;
	</script>
</div>